<template>
	<view class="focusItem">

		<!-- 关注者信息 -->
		<a href="/">
			<view class="title">
				<view class="left">
					<view class="title_img_box">
						<image :src="profileImg"></image>
					</view>
					<view class="title-txt">
						<p clss="title-txt-top">{{name}}</p>
						<span class="title-txt-bottom">{{time}} · {{region}}</span>
					</view>
				</view>

				<button class="follow" type="default">+关注</button>
			</view>
		</a>
		<!-- 图片展示区 -->
		<view class="img" v-for="item2 in img">
			<image :src="item2.url" mode=""></image>
		</view>
		<!-- 关注者-文案区域 -->
		<view class="content">
			<h3>{{title}}</h3>
			<p>{{content}}</p>
		</view>
		<view class="li-item-bottom">
			<view class="Btop">
				<uni-icons size="24" type="undo">分享</uni-icons>
				<view class="">
					<uni-icons size="24" type="hand-up">赞</uni-icons>
					<uni-icons size="24" type="chat">评论</uni-icons>
					<uni-icons size="24" type="star">收藏</uni-icons>
				</view>
			</view>
			<view class="Bbotton">
				<uni-easyinput suffixIcon="compose" v-model="value" @iconClick="onClick(id)" placeholder="发一条友善的评论" />
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "focusItem",
		props: {
			id: {
				type: Number,
			},
			name: {
				type: String,
			},
			time: {
				type: String,
			},
			region: {
				type: String,
			},
			title: {
				type: String,
			},
			content: {
				type: String,
			},
			url: {
				type: String,
			},
			profileImg: {
				type: String
			},
			img: {
				type: Array,
			}
		},
		data() {
			return {
				value: '',
			};
		},
		methods: {
			onClick(id, e) {
				console.log(id, "点击了关注页输入框")
			}
		}
	}
</script>

<style lang="scss" scoped>
	* {
		margin: 0;
		padding: 0;
	}

	.focusItem {


		a {
			text-decoration: none;
			color: #3b414e;
		}

		// 关注者信息
		.title {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-top: 6px;
			padding: 4px;
			background-color: #fff;

			.left {
				display: flex;
				align-items: center;

				.title_img_box {
					width: 36px;
					height: 36px;

					image {
						border-radius: 50%;
						width: 100%;
						height: 100%;
					}
				}

				.title-txt {
					margin-left: 4px;

					.title-txt-top {
						font-size: 14px;
					}

					.title-txt-bottom {
						font-size: 12px;
						color: #999;
					}
				}
			}

			.follow {
				display: flex;
				justify-content: center;
				align-items: center;
				width: 60px;
				height: 30px;
				font-size: 14px;
				color: #007AFF;

				&::after {
					border: 0;
				}
			}
		}

		// 图片展示区
		.img {
			padding: 4px 0;
			background-color: #fff;

			image {
				display: block;
				width: 100%;
				border-top: 2px solid #fff;
			}
		}

		// 关注者-文案区域
		.content {
			padding: 0 8px;
			background-color: #fff;
		}

		.li-item-bottom {
			padding: 0 8px 8px;
			background-color: #fff;

			.Btop {
				display: flex;
				justify-content: space-between;
			}

			.Bbotton {}
		}

	}
</style>
